#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QAudioInput>
#include <QAudioOutput>
#include <audioinfoinput.h>
#include <audioinfoOutput.h>
MainWindow::MainWindow(AudioInfoInPut *InF,QAudioInput *InA,AudioInfoOutPut *OutF, QAudioOutput *OutA, QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow),
    pInF(InF),
    pInA(InA),
    pOutF(OutF),
    pOutA(OutA)
{
    ui->setupUi(this);
}

MainWindow::~MainWindow()
{
    delete ui;
}


void MainWindow::closeEvent(QCloseEvent *event)
{
    pInF->stop();

    pInA->stop();

    pOutF->stop();

    pOutA->stop();

    //m_pNetworkAvData->close();
    QMainWindow::closeEvent(event);
}
